<!--
<!DOCTYPE html>
<html>
<head>
    &lt;!&ndash; 页面meta &ndash;&gt;
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>传智健康</title>
    <meta name="description" content="传智健康">
    <meta name="keywords" content="传智健康">
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    &lt;!&ndash; 引入样式 &ndash;&gt;
    <link rel="stylesheet" href="plugins/elementui/index.css">
    <link rel="stylesheet" href="css/login.css">
</head>
<body class="hold-transition skin-purple sidebar-mini">
<div id="app">
    <div class="login-container">
        <div class="loginBox">
            &lt;!&ndash; <form method="post" class="login-form" action="/login.do" label-position="left">
                 <div class="title-container">
                     <div class="logoInfo clearfix">
                         <em class="logo"></em>
                     </div>
                 </div>
                 <div>
                         <span class="svg-container svg-container_login">
                           <span class="user"></span>
                         </span>
                     <input type="text" name="username" placeholder="请输入用户名"/>
                 </div>
                 <div>
                         <span class="svg-container">
                           <span class="username"></span>
                         </span>
                     <input type="password" name="password" placeholder="请输入密码"/>
                 </div>
                 <input type="submit" style="width:100%;margin-bottom:30px;" value="登录"></input>
             </form>&ndash;&gt;
            <el-form ref="form" label-width="100px" class="demo-ruleForm">
                <div class="title-container">
                    <div class="logoInfo clearfix">
                        <em class="logo"></em>
                    </div>
                </div>
                <el-form-item label="用户名">
                    <el-input v-model="name"></el-input>
                </el-form-item>
                <el-form-item label="密码">
                    <el-input type="password" v-model="password"></el-input>
                </el-form-item>
                <el-form-item>
                    <el-button type="primary" @click="onSubmit">登录</el-button>
                    <el-button>取消</el-button>
                </el-form-item>
            </el-form>
        </div>
    </div>
</div>
</body>
&lt;!&ndash; 引入组件库 &ndash;&gt;
<script src="js/vue.js"></script>
<script src="plugins/elementui/index.js"></script>
<script src="../js/axios-0.18.0.js"></script>
<script>
    const vue = new Vue({
        el: '#app',
        data: {
            name: '',
            password: ''
        },
        methods: {
            onSubmit() {
                axios.post('/login.do', {userName: this.name, password: this.password})
            }
        }


    })
</script>
</html>
-->
<!DOCTYPE html>
<!-- saved from url=(0047)file:///D:/web%E8%84%9A%E6%9C%AC/WEB/login.html -->
<html lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

    <title>登录</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        html {
            height: 100%;
            width: 100%;
            overflow: hidden;
            margin: 0;
            padding: 0;
            background: url(img/bg.jpg) no-repeat 0px 0px;
            background-repeat: no-repeat;
            background-size: 100% 100%;
            -moz-background-size: 100% 100%;
        }

        body {
            display: flex;
            align-items: center;
            justify-content: center;
            height: 100%;
        }

        #loginDiv {
            width: 37%;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 300px;
            background-color: rgba(75, 81, 95, 0.3);
            /*background-color: #fff;*/
            box-shadow: 7px 7px 17px rgba(52, 56, 66, 0.5);
            border-radius: 5px;
        }

        #name_trip {
            margin-left: 50px;
            color: red;
        }

        p {
            margin-top: 30px;
            margin-left: 20px;
            color: azure;
        }

        input {
            margin-left: 15px;
            border-radius: 5px;
            border-style: hidden;
            height: 30px;
            width: 140px;
            background-color: rgba(216, 191, 216, 0.5);
            outline: none;
            color: #f0edf3;
            padding-left: 10px;
        }

        .button {
            border-color: cornsilk;
            background-color: rgba(100, 149, 237, .7);
            color: aliceblue;
            border-style: hidden;
            border-radius: 5px;
            width: 100px;
            height: 31px;
            font-size: 16px;
        }
    </style>
</head>

<body>
<div id="loginDiv">
    <form action="/login.do" id="form" method="post">
        <h1 style="text-align: center;color: aliceblue;">登录</h1>
        <p>用户名:<input id="username" name="username" type="text"><label id="name_trip"></label></p>

        <p>密码: <input id="password" name="password" type="password" style="margin-left: 25px"><label id="password_trip"></label></p>

        <div style="text-align: center;margin-top: 30px;">
            <input type="submit" class="button" value="登录">
            <input type="reset" class="button" value="重置">
        </div>
    </form>
</div>
<script src="js/jquery.min.js"></script>
</body>
</html>

